<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<html>
<body>
<script type="text/javascript">
$(document).ready(function(){
	$("#giftId").val(${giftId});
	$("#giftNameId").text($("#giftId").find("option:selected").text());
});
</script>
<form class="form-inline" action="giftRanklist.do" method="post">开始时间：
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${beginDate}" name="beginDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
  结束时间：
  <div class="datepicker input-append">
    <input data-format="yyyy-MM-dd" type="text" value="${endDate}" name="endDate"></input>
    <span class="add-on">
      <i data-time-icon="icon-time" data-date-icon="icon-calendar">
      </i>
    </span>
  </div>
 礼物类型：
  <select name="giftId" id="giftId" value="${giftId}">
      <option value="51">豪华游艇</option>
      <option value="52">法拉利</option>
      <option value="53">半山别墅</option>
      <option value="54">富豪飞机</option>
      <option value="55">爱的花语</option>
      <option value="56">点歌麦克风</option>
      
      <option value="151">老公我爱你</option>
      <option value="152">老婆我爱你</option>
      <option value="153">道歉</option>
      <option value="154">请嫁给我吧</option>
      <option value="155">我要嫁给你</option>
      <option value="156">我好喜欢你</option>
      <option value="157">生日快乐</option>
      
      <option value="180">中秋快乐</option>
      <option value="181">感恩有你</option>
      <option value="182">冬之雪舞</option>
      <option value="183">马上有钱</option>
      <option value="200">金色玫瑰</option>
  </select>
  <button type="submit" class="btn">查询</button>
</form>
默认前20名：<span id='giftNameId'>豪华游艇</span>
<table class="table table-bordered">
  <thead>
    <tr> 	 	 	 	 	 	 	 							 	
      <th>序号</th>
      <th>用户ID</th>
      <th>昵称</th>
      <th>送礼数量</th>
    </tr>
  </thead>
  <tbody>
  <c:forEach var="m" items="${giftRankList}" varStatus="status">
    <tr>
      <td>${status.count}</td>
      <td>${m.playerId}</td>
      <td><a href="/admin/player/info.do?id=${m.playerId}">${m.nikeName}</a></td>
      <td>${m.num}</td>
    </tr>
  </c:forEach>
  </tbody>
</table>
</body>
</html>